package cn.phonevane.service.impl;

import java.util.List;
import cn.phonevane.dao.BaseDao;
import cn.phonevane.model.TArticleType;
import cn.phonevane.service.TypeService;

public class TypeServiceImpl implements TypeService{
	private BaseDao baseDao;
	
	public BaseDao getBaseDao() {
		return baseDao;
	}

	public void setBaseDao(BaseDao baseDao) {
		this.baseDao = baseDao;
	}

	/**
	 * �����������
	 * 
	 * @param object 
	 * @return boolean
	 */
	public boolean add(Object object) {
		
		return baseDao.save(object);
	}
	public List<TArticleType> get(){
		
		List<TArticleType> list=null;
		StringBuilder hql=new StringBuilder();
		hql.append("from TArticleType as a order by a.articleTypeId");
		list=this.baseDao.find(hql.toString());
		return list;
		
	}

}
